<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.7.1.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			$(function(){
				$("button").eq(0).bind("click",fun)
				$("button").eq(1).one("click",function(){
					console.log("一次性事件,只能看见这句话一次");
					$("button").eq(0).unbind("click",fun)
				})
			})
			function fun(){
				console.log("你点击了按钮");
			}
		</script>
	</head>
	<body>
		<button>绑定事件</button>
		<button>解除绑定</button>
	</body>
</html>
